<?php
	require 'init.inc.php';
	
	$mission=new Mission();
	$total=$mission->getRowTotal();
	$page=isset($_GET['page'])?$_GET['page']:1;
	$pageObj=new Page($total,$page,MISSION_PAGE_SIZE);
	$pageInfo=$pageObj->getPageInfo();
	$allMission=$mission->getAllMission($pageInfo['row_offset'],$pageInfo['row_num']);
	$mission->getAllMission($offset, $num);
	
	$smarty->assign("data",$mission);
	$smarty->assign("pageinfo",$pageInfo);
	//分配网站名称到模板文件中
	$smarty->assign("appName", APP_NAME);
	//分配网站的应用路径到模板文件中
	$smarty->assign("appPath",APP_PATH);
	//分配前台页面的样式路径到模板文件中
	$smarty->assign("stylePath", STYLE_PATH.APP_STYLE);
	$smarty->display(APP_PATH."mis.html");
?>